package com.limf.demo.spring;

public class Car {

	private int maxSpeed;
	private String brand;
	private String corp;
	private double price;
	private Boss boss;
	public Car(double price, Boss boss) {
		super();
		System.out.println("I'm the Car's construct two "+price + " boss "+ boss.getName());
		this.price = price;
		this.boss = boss;
	}
	public Car(int maxSpeed, String brand, double price) {
		System.out.println("车的时速是 "+maxSpeed+" 品牌为："+brand+" 价格为："+price);
		this.maxSpeed = maxSpeed;
		this.brand = brand;
		this.price = price;
	}
	public Car(String brand, String corp, double price) {
		System.out.println("brand:"+ brand+" corp:"+corp + " price :"+ price);
		this.brand = brand;
		this.corp = corp;
		this.price = price;
	}
	public Car(String brand, String corp, int maxSpeed) {
		System.out.println("brand:"+ brand+" corp:"+corp + " maxSpeed :"+ maxSpeed);
		this.brand = brand;
		this.corp = corp;
		this.maxSpeed =maxSpeed;
	}
	public Car() {
		
	}
	public int getMaxSpeed() {
		return maxSpeed;
	}
	public void setMaxSpeed(int maxSpeed) {
		System.out.println("The maximum speed is "+maxSpeed);
		this.maxSpeed = maxSpeed;
	}
	public String getBrand() {
		return brand;
	}
	public void setBrand(String brand) {
		System.out.println("It is a "+brand + " Car");
		this.brand = brand;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		System.out.println("The price of this car "+price);
		this.price = price;
	}
	public String getCorp() {
		return corp;
	}
	public void setCorp(String corp) {
		this.corp = corp;
	}
	public Boss getBoss() {
		return boss;
	}
	public void setBoss(Boss boss) {
		this.boss = boss;
	}
	
	
	
}
